package mc.support.taobao.api;


import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.TmcGroupAddRequest;
import com.taobao.api.response.TmcGroupAddResponse;

/**
 *@Author:kane
 *@Date:2014年4月22日
 *
 */
public class MsgGroupAddReq extends
		AbstractReq<MsgGroupAddReq, TmcGroupAddResponse> {

	private String nick;

	private String groupname;

	public MsgGroupAddReq setNick(String nick) {
		this.nick = nick;
		return this;
	}

	public MsgGroupAddReq setGroupname(String groupname) {
		this.groupname = groupname;
		return this;
	}

	@Override
	protected TaobaoRequest toRequest() {
		TmcGroupAddRequest req = new TmcGroupAddRequest();
		if (null != nick) {
			req.setNicks(nick);
			req.setGroupName(groupname);
		}
		return req;
	}
}
